# -*- coding: utf-8 -*-

import os
import sys
basedir = os.path.dirname(__file__)
class BaseConfig(object):
    SECRET_KEY = os.getenv('SECRET_KEY', 'jsdcdskcndscn')

    DEBUG_TB_INTERCEPT_REDIRECTS = False

    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SQLALCHEMY_RECORD_QUERIES = True
    UPLOADED_PATH=os.path.join(basedir, 'uploads'),
    DROPZONE_ALLOWED_FILE_CUSTOM=True,
    DROPZONE_ALLOWED_FILE_TYPE='default,.rar',
    DROPZONE_MAX_FILE_SIZE=5000,  # set max size limit to a large number, here is 1024 MB
    DROPZONE_TIMEOUT=5 * 60 * 1000  # set upload timeout to a large number, here is 5 minutes

    BLUELOG_POST_PER_PAGE = 10
    BLUELOG_MANAGE_POST_PER_PAGE = 15
    BLUELOG_COMMENT_PER_PAGE = 15
    BLUELOG_SLOW_QUERY_THRESHOLD = 1

  
class DevelopmentConfig(BaseConfig):
    SQLALCHEMY_DATABASE_URI = "zzzzzzzzz"
class ProductionConfig(BaseConfig):
    SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URL')
config = {
    'development': DevelopmentConfig,
    'production': ProductionConfig
}